C S S Domain
This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated id
used in subsequent operations on the related object. Each object type has a specific id
structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the get*ForNode()
calls (which accept a DOM node id). A client can also keep track of stylesheets via the styleSheetAdded
/styleSheetRemoved
events and subsequently load the required stylesheet contents using the getStyleSheet[Text]()
methods.
This API is marked as experimental in protocol definition and can change in the future.
Functions
addRule
Link copied to clipboard
collectClassNames
Link copied to clipboard
fun collectClassNames(input: CollectClassNamesRequest): Single<CollectClassNamesResponse>
Content copied to clipboard
createStyleSheet
Link copied to clipboard
fun createStyleSheet(input: CreateStyleSheetRequest): Single<CreateStyleSheetResponse>
Content copied to clipboard
description
Link copied to clipboard
disable
Link copied to clipboard
enable
Link copied to clipboard
events
Link copied to clipboard
fontsUpdated
Link copied to clipboard
forcePseudoState
Link copied to clipboard
fun forcePseudoState(input: ForcePseudoStateRequest): Single<RequestResponseFrame>
Content copied to clipboard
getBackgroundColors
Link copied to clipboard
fun getBackgroundColors(input: GetBackgroundColorsRequest): Single<GetBackgroundColorsResponse>
Content copied to clipboard
getComputedStyleForNode
Link copied to clipboard
fun getComputedStyleForNode(input: GetComputedStyleForNodeRequest): Single<GetComputedStyleForNodeResponse>
Content copied to clipboard
getDependencies
Link copied to clipboard
getInlineStylesForNode
Link copied to clipboard
fun getInlineStylesForNode(input: GetInlineStylesForNodeRequest): Single<GetInlineStylesForNodeResponse>
Content copied to clipboard
getMatchedStylesForNode
Link copied to clipboard
fun getMatchedStylesForNode(input: GetMatchedStylesForNodeRequest): Single<GetMatchedStylesForNodeResponse>
Content copied to clipboard
getMediaQueries
Link copied to clipboard
getPlatformFontsForNode
Link copied to clipboard
fun getPlatformFontsForNode(input: GetPlatformFontsForNodeRequest): Single<GetPlatformFontsForNodeResponse>
Content copied to clipboard
getStyleSheetText
Link copied to clipboard
fun getStyleSheetText(input: GetStyleSheetTextRequest): Single<GetStyleSheetTextResponse>
Content copied to clipboard
mediaQueryResultChanged
Link copied to clipboard
setEffectivePropertyValueForNode
Link copied to clipboard
fun setEffectivePropertyValueForNode(input: SetEffectivePropertyValueForNodeRequest): Single<RequestResponseFrame>
Content copied to clipboard
setKeyframeKey
Link copied to clipboard
fun setKeyframeKey(input: SetKeyframeKeyRequest): Single<SetKeyframeKeyResponse>
Content copied to clipboard
setLocalFontsEnabled
Link copied to clipboard
fun setLocalFontsEnabled(input: SetLocalFontsEnabledRequest): Single<RequestResponseFrame>
Content copied to clipboard
setMediaText
Link copied to clipboard
fun setMediaText(input: SetMediaTextRequest): Single<SetMediaTextResponse>
Content copied to clipboard
setRuleSelector
Link copied to clipboard
fun setRuleSelector(input: SetRuleSelectorRequest): Single<SetRuleSelectorResponse>
Content copied to clipboard
setStyleSheetText
Link copied to clipboard
fun setStyleSheetText(input: SetStyleSheetTextRequest): Single<SetStyleSheetTextResponse>
Content copied to clipboard
setStyleTexts
Link copied to clipboard
fun setStyleTexts(input: SetStyleTextsRequest): Single<SetStyleTextsResponse>
Content copied to clipboard
startRuleUsageTracking
Link copied to clipboard
stopRuleUsageTracking
Link copied to clipboard
styleSheetAdded
Link copied to clipboard
styleSheetChanged
Link copied to clipboard
styleSheetRemoved
Link copied to clipboard
takeComputedStyleUpdates
Link copied to clipboard
takeCoverageDelta
Link copied to clipboard
trackComputedStyleUpdates
Link copied to clipboard
fun trackComputedStyleUpdates(input: TrackComputedStyleUpdatesRequest): Single<RequestResponseFrame>
Content copied to clipboard
Sources
jvm source
Link copied to clipboard